import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import Home from '@/components/Home'
import Detail from '@/components/Detail'
import Index from '@/components/Index'
import axios from 'axios'

Vue.prototype.$axios = axios

Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // }
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/index.html',
      name: 'Index',
      component: Index
    },
    {
      path: '/detail/:id.html',
      name: 'Detail',
      component: Detail
    }
  ]
})
